package cn.hairui.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author laoganbu
 * @since 2020-04-06
 */
public class Artical implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    @TableField("TITLE")
    private String title;

    /**
     * 摘要
     */
    @TableField("SUMMARY")
    private String summary;

    /**
     * 创建人
     */
    @TableField("CREATE_ID")
    private String createId;

    /**
     * 创建日期
     */
    @TableField("CREATE_DATE")
    private String createDate;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 更新时间
     */
    @TableField("CREATE_TIME")
    private String updateTime;

    /**
     * 内容
     */
    @TableField("CONTENT")
    private String content;

    /**
     * 首页图片
     */
    @TableField("INDEX_PICTURE")
    private String indexPicture;

    /**
     * 分类
     */
    @TableField("TYPE_ID")
    private Integer typeId;

    /**
     * 是否转载
     */
    @TableField("REPRINT_FLAG")
    private String reprintFlag;

    /**
     * 转载地址
     */
    @TableField("REPRINT_URL")
    private String reprintUrl;

    /**
     * 查看次数
     */
    @TableField("VIEW_TIMES")
    private Integer viewTimes;

    /**
     * 点赞次数
     */
    @TableField("LIKE_TIMES")
    private Integer likeTimes;

    /**
     * 是否公开
     */
    @TableField("SHOW_FLAG")
    private String showFlag;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getIndexPicture() {
        return indexPicture;
    }

    public void setIndexPicture(String indexPicture) {
        this.indexPicture = indexPicture;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getReprintFlag() {
        return reprintFlag;
    }

    public void setReprintFlag(String reprintFlag) {
        this.reprintFlag = reprintFlag;
    }

    public String getReprintUrl() {
        return reprintUrl;
    }

    public void setReprintUrl(String reprintUrl) {
        this.reprintUrl = reprintUrl;
    }

    public Integer getViewTimes() {
        return viewTimes;
    }

    public void setViewTimes(Integer viewTimes) {
        this.viewTimes = viewTimes;
    }

    public Integer getLikeTimes() {
        return likeTimes;
    }

    public void setLikeTimes(Integer likeTimes) {
        this.likeTimes = likeTimes;
    }

    public String getShowFlag() {
        return showFlag;
    }

    public void setShowFlag(String showFlag) {
        this.showFlag = showFlag;
    }

    @Override
    public String toString() {
        return "Artical{" +
                "id=" + id +
                ", title=" + title +
                ", summary=" + summary +
                ", createId=" + createId +
                ", createDate=" + createDate +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", content=" + content +
                ", indexPicture=" + indexPicture +
                ", typeId=" + typeId +
                ", reprintFlag=" + reprintFlag +
                ", reprintUrl=" + reprintUrl +
                ", viewTimes=" + viewTimes +
                ", likeTimes=" + likeTimes +
                ", showFlag=" + showFlag +
                "}";
    }
}
